package com.room.search.service.dto;

import io.swagger.annotations.ApiModel;
import java.io.Serializable;
import java.util.Objects;
import javax.validation.constraints.*;

/**
 * A DTO for the {@link com.room.search.domain.RoomListingFeature} entity.
 */
@ApiModel(description = "房源特色")
public class RoomListingFeatureDTO implements Serializable {

    private Long id;

    @Size(max = 32)
    private String featureName;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFeatureName() {
        return featureName;
    }

    public void setFeatureName(String featureName) {
        this.featureName = featureName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof RoomListingFeatureDTO)) {
            return false;
        }

        RoomListingFeatureDTO roomListingFeatureDTO = (RoomListingFeatureDTO) o;
        if (this.id == null) {
            return false;
        }
        return Objects.equals(this.id, roomListingFeatureDTO.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(this.id);
    }

    // prettier-ignore
    @Override
    public String toString() {
        return "RoomListingFeatureDTO{" +
            "id=" + getId() +
            ", featureName='" + getFeatureName() + "'" +
            "}";
    }
}
